﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AsynchronousTestActivity.cs" company="JDML Consulting Ltd.">
//   Copyright 2011 Photon Project - http://photon.codeplex.com
// </copyright>
// <summary>
//   Defines the AsynchronousTestActivity type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Photon.Testing.Threading
{
   public abstract class AsynchronousTestActivity : IAsynchronousTestActivity
   { 
      #region Fields

      #endregion

      public bool IsCompleted { get; private set; }

      protected void SetCompleted()
      {
         IsCompleted = true;
      }

      public abstract void Execute();
      
      public virtual void Reset()
      {
         IsCompleted = false;
      }
   }
}